package org.flower.entity;

import java.util.Date;

public class User {
    private int id;//用户编号
    private String name;//名称
    private String pwd;//密码
    private String sex;//性别
    private String phone;//电话
    private Date borndate;//生日
    private String photo;//头像
    private String email;//email
    private boolean state;//状态
    private Date loginDate;//注册时间
    private String stateStr = "";//用户状态字符串
    private String DateBorda;

    public String getDateBorda() {

        return DateBorda;
    }

    public void setDateBorda(String dateBorda) {
        DateBorda = dateBorda;
    }

    public boolean isState() {
        return state;
    }

    public String getStateStr() {
        return stateStr;
    }

    public void setStateStr(String stateStr) {
        this.stateStr = stateStr;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", borndate=" + borndate +
                ", photo='" + photo + '\'' +
                ", email='" + email + '\'' +
                ", state=" + state +
                ", loginDate=" + loginDate +
                ", stateStr='" + stateStr + '\'' +
                ", DateBorda='" + DateBorda + '\'' +
                '}';
    }

    public User() {
    }

    public User(int id, String name, String pwd, String sex, String phone, Date borndate, String photo, String email, boolean state, Date loginDate) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.sex = sex;
        this.phone = phone;
        this.borndate = borndate;
        this.photo = photo;
        this.email = email;
        this.state = state;
        this.loginDate = loginDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getBorndate() {
        return borndate;
    }

    public void setBorndate(Date borndate) {
        this.borndate = borndate;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }
}
